This dataverse contains the files to replicate the analyses of the article "Voters rally around the incumbent in the aftermath of terrorist attacks: Evidence from multiple unexpected events during surveys"

The list of files is organized in two folders:

- attacks_terror_data.dta
	Database (Stata data file) to generate a Figure (Map) in the main text:
	* Figure 1

- multipleuesd_terror_data.dta
	Database (Stata data file) to generate Tables and Figures in the main text and the appendix:
	* Table 1
	* Table 2
	* Table 3
	* Figure 2
	* Figure 3
	* Figure 4
	* Figure 5
	* Table 4
	* Table B1
	* Table C1
	* Table C2
	* Table C3
	* Table C4
	* Table D1
	* Table D2
	* Table D3
	* Table D4
	* Table D5
	* Figure D1
	* Figure E1
	* Figure F1
	* Figure F2
	* Figure F3

- Replication_Fig1Map_script.R
	Script (R file) to generate a Figure in the main text:
	* Figure 1

- Replication_main_log.smcl
	Log file (Stata) showing replication of the tables and figures in the main text and the appendix.

- Replication_main_script.do
	Script (Stata dofile) to replicate all the Stata analyses (Tables and Figures) in the article, both in the main text and in the appendix.

- surveyexperiment_terror_data.dta
	Database (Stata data file) to generate a Figure in the main text:
	* Figure 6

- Replication_sectionD6_script
        Script (Stata dofile) to create the merged placebo datasets and generate the tables in Section D6 of the appendix:
        * Table D6
        * Table D7 

- Replication_sectionD6_logfile
        Log file (Stata) showing replication of the tables in Section D6 of the appendix.

- 2307.sav
	Original CIS study (.sav) used to create the merged placebo datasets (section D6 in the appendix)
- 2316.sav
	Original CIS study (.sav) used to create the merged placebo datasets (section D6 in the appendix)
- 2324.sav
	Original CIS study (.sav) used to create the merged placebo datasets (section D6 in the appendix)
- 2367.sav
	Original CIS study (.sav) used to create the merged placebo datasets (section D6 in the appendix)
- 2372.sav
	Original CIS study (.sav) used to create the merged placebo datasets (section D6 in the appendix)



Machine information:

- Operating system (Stata-run analyses): Windows 10 Enterprise
- RAM (Stata-run analyses): 16.0GB
- Operating system (Stata-run analyses, appendix D6): Windows 11 Home
- RAM (Stata-run analyses, appendix D6): 32.0GB
- Operating system (R-run analyses): XXX
- RAM (R-run analyses): XXX

Sofware information:

- Stata/SE: version 17.0 for Windows (64bit x86-64)
- Stata/SE (appendix D6): version 18.0 for Windows (64bit x86-64)

- Stata programs (except built-in commands)
	* egen: version 3.4.2
	* distinct: version 1.4.1
	* reghdfe: version 5.7.3
	* estimates: version 1.11.0
	* estadd: version 2.3.5
	* esttab: vesion 2.1.1
	* margins: version 1.4.1
	* combomarginsplot: version 1.5.1
	* graph: version 1.3.4
	* grc1leg: version 1.0.5
	* mplotoffset: version 1.1.1
	* catcibar: version 1.0.4
	* iebaltab: version 7.0
	* ebalance: version 1.5.4
	* frame: version 1.1.1

- Stata programs (except built-in commands, appendix D6)
	* append: version 1.0.2
	* clonevar: version 1.0.2
	* egen: version 3.4.2
	* estadd: versión 2.3.3
        * eststo: versión 1.1.0
        * esttab: versión 2.0.6
	* import: version 1.1.3
	* label: version 1.1.0
	* merge: version 3.2.13
	* recode: version 3.6.1
	* reg: version 1.0.3
	* rename: version 1.0.10
	* sample: version 2.4.0
       

- R: version 4.2.2 (2022-10-31 ucrt); platform x86_64-w64-mingw32
- RStudio: version 2023.12.1+402 "Ocean Storm" Release (4da58325ffcff29d157d9264087d4b1ab27f7204, 2024-01-28) for windows


- R programs:
	* lubridate: 1.9.3
	* forcats: 1.0.0
	* stringr: 1.5.0
	* purrr: 1.0.1
	* readr: 2.1.5
	* tidyr: 1.3.0
	* tibble: 3.1.8
	* tidyverse: 2.0.0
	* mapproj: 1.2.11
	* maps: 3.4.2
	* haven: 2.5.1
	* dplyr: 1.0.10
	* ggplot2: 3.4.4
